package com.ideaction.entity.activity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@Document(collection = "activity")
public class ActivityModel {
    
    @JsonProperty("Sid")
    private int sid;
    
    @JsonProperty("ShowTime")
    private Date showTime;
    
    @JsonProperty("BeginTime")
    private Date beginTime;
    
    @JsonProperty("EndTime")
    private Date endTime;
    
    @JsonProperty("EndShowTime")
    private Date endShowTime;
    
    //    @JsonProperty("HaveReward")
    //    private int haveReward;//已经领取次数
    @JsonProperty("IsAble")
    private boolean isAble;
    
    @JsonIgnore
    private long createTime;// 本条活动入库或者生成时间
    
    @JsonIgnore
    private long modifyTime;//活动编辑时间
    
}
